package com.guochaojava.config;

import com.guochaojava.property.DruidProperties;
import com.guochaojava.property.UploadProperties;
import com.guochaojava.property.WeChatProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author guochao
 * @since 1.0.0
 **/
@Configuration
@ConfigurationProperties(prefix = "guochaojava")
public class PropertiesConfig {

    private UploadProperties upload = new UploadProperties();

    private DruidProperties druid = new DruidProperties();

    private WeChatProperties wechat = new WeChatProperties();

    public DruidProperties getDruid() {
        return druid;
    }

    public void setDruid(DruidProperties druid) {
        this.druid = druid;
    }


    public UploadProperties getUpload() {
        return upload;
    }

    public void setUpload(UploadProperties upload) {
        this.upload = upload;
    }

    public WeChatProperties getWechat() {
        return wechat;
    }

    public void setWechat(WeChatProperties wechat) {
        this.wechat = wechat;
    }
}
